﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.Odbc;
using ExtremeSwank.Authentication.OpenID;

namespace ExtremeSwank.Authentication.OpenID.Persistence
{
    /// <summary>
    /// Manages associations with OpenID Providers, uses ODBC for persistence.
    /// </summary>
    public class OdbcAssociationManager : DbAssociationManager
    {
        /// <summary>
        /// Creates a new OdbcAssociationManager instance.
        /// </summary>
        /// <param name="connectionString">ODBC connection string.</param>
        /// <param name="tablenamePrefix">Table name prefix.</param>
        public OdbcAssociationManager(string connectionString, string tablenamePrefix)
        {
            _conn = new OdbcConnection(connectionString);
            _tablePrefix = tablenamePrefix;
        }
    }
}
